<template>
  <view class="page">
    <view class="tcard">
      <view class="title flexR">
        住院人信息
        <view class="tig_status success">
          已出院
        </view>
      </view>
      <view class="tform no-border left">
        <view class="tform-item">
          <view class="label align">住院患者：</view>
          <view class="value">{{userInfo.name}}</view>
        </view>
        <view class="tform-item">
          <view class="label align">住院号：</view>
          <view class="value">000123032420</view>
        </view>
        <view class="tform-item">
          <view class="label">入院病区：</view>
          <view class="value">内科中心病区</view>
        </view>
        <view class="tform-item">
          <view class="label">入院科室：</view>
          <view class="value">门诊内一科</view>
        </view>
        
        <view class="tform-item">
          <view class="label align">床位号：</view>
          <view class="value">
            39
          </view>
        </view>
        <view class="tform-item">
          <view class="label">入院日期：</view>
          <view class="value">2024-09-15</view>
        </view>
        <view class="tform-item">
          <view class="label">出院日期：</view>
          <view class="value">2024-09-15</view>
        </view>
        <view class="tform-item">
          <view class="label">住院天数：</view>
          <view class="value">7天</view>
        </view>
      </view>
      <view class="line"></view>
      <view class="money-box">
        费用合计：<text class="money red">- 234.77</text>
      </view>
    </view>
    
    <view class="tcard">
      <view class="title">
        每日费用清单
      </view>
      <view class="tform">
        <view class="tform-item" @click="toDailyDetail">
          <view class="label">2024-06-07</view>
          <view class="value">￥447.03<u-icon name="arrow-right"></u-icon></view>
        </view>
        <view class="tform-item">
          <view class="label">2024-06-07</view>
          <view class="value">￥447.03<u-icon name="arrow-right"></u-icon></view>
        </view>
        <view class="tform-item">
          <view class="label">2024-06-07</view>
          <view class="value">￥447.03<u-icon name="arrow-right"></u-icon></view>
        </view>
        <view class="tform-item">
          <view class="label">2024-06-07</view>
          <view class="value">￥447.03<u-icon name="arrow-right"></u-icon></view>
        </view>
        <view class="tform-item">
          <view class="label">2024-06-07</view>
          <view class="value">￥447.03<u-icon name="arrow-right"></u-icon></view>
        </view>
      </view>
    </view>
    
  </view>
</template>

<script>
  import { mapGetters } from 'vuex';
  export default {
    data() {
      return {
        
      }
    },
    computed:{
    	...mapGetters(['userInfo']),
    },
    methods: {
      toDailyDetail() {
        uni.navigateTo({
          url: `./dailyDetail`
        })
      }
    }
  }
</script>

<style lang="scss" scoped>
.title {
  justify-content: space-between;
}
.align {
  width: 5em;
  text-align: justify;
  text-align-last: justify;
}
.line {
  margin: 16upx 0;
}
.money-box {
  text-align: right;
}
.money {
  font-family: PingFang SC, PingFang SC;
  font-weight: bold;
  font-size: 36upx;
  color: $theme-color;
}
.u-icon {
  color: rgba(0,0,0,0.4);
}
</style>
